﻿@using MVCMongo.Services
@model IEnumerable<DataMongo.Entities.Photos>
@{
    ViewBag.Title = "_partialPhotoList";
    var controller = ViewBag.Controller;
}

<script src="~/Content/UserProfile/js/plugins/colorbox/jquery.colorbox-min.js"></script>
<link href="~/Content/UserProfile/css/plugins/colorbox/colorbox.css" rel="stylesheet" />
    <div class="span12">
 
        <ul class="gallery">
            @foreach (var item in Model)
            {
                var img = "";
                var imageUrl = UtilityService.GetImageByPhotoId(item.PhotoId);
                if (!string.IsNullOrEmpty(imageUrl))
                {
                    img = item.AlbumId + "/" + imageUrl;

                }
                <li>
                    <a href="#">
                        <img alt="" src="/Content/UserProfile/UserUploadedPic/Albums/@img" width="250px" >
                    </a>
                    <div class="extras" style="color: white !important ; background: none !important; height: 0 !important;">
                        <div class="extras-inner">

                            <a title="Details" href="/Content/UserProfile/UserUploadedPic/Albums/@img" class='colorbox-image' rel="group-1"><i class="icon-zoom-in"></i></a>



                            <a title="Delete" onclick="confirm('Are You Sure?????')" href="@Url.Action("PhotoDelete","Album",new{photoId=item.PhotoId, con=@controller})"><i class="icon-trash"></i></a>
                        </div>
                    </div>
                </li>

            }


        </ul>
    </div>



